package visitor.v1;

import java.util.ArrayList;
import java.util.List;

public class Test {

    public static void main(String[] args) {
        List<ResourceFile> files = new ArrayList<>();
        files.add(new PPTFile("a.ppt"));
        files.add(new ExcelFile("b.excel"));
        for(ResourceFile file: files){
            //file.accept(new Extractor());
            file.compress(new Compressor());
        }
    }
}
